package com.xian.scanner;

import java.util.Scanner;

public class ScannerDemo {
    public static void main(String[] args) {

        //目标:键盘录入技术

        Scanner sc = new Scanner(System.in);

        System.out.println("请输入年龄:");
        int age = sc.nextInt();
        System.out.println("您的年龄是:"+age);

        System.out.println("请输入名称:");
        String name = sc.next();
        System.out.println("欢迎:"+name);



    }
}
